package com.kcht.rd30.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kcht.rd30.entity.AbnormalDetectionEntity;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface IAbnormalDetectionMapper extends BaseMapper<AbnormalDetectionEntity> {
    @Select("select ip from tb_reader_abnormal_detection")
    Set<String> findAllIp();

    @Select("select * from tb_reader_abnormal_detection where ip=#{ip}")
    AbnormalDetectionEntity findByIp(String ip);
}
